package es.cazadoresmadridejos.beans.manager.adviced.impl;

import org.displaytag.pagination.PaginatedList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import es.cazadoresmadridejos.beans.dao.adviced.AdvicedDao;
import es.cazadoresmadridejos.beans.manager.adviced.AdvicedManager;
import es.cazadoresmadridejos.common.bean.dao.Dao;
import es.cazadoresmadridejos.common.bean.manager.impl.ManagerImpl;
import es.cazadoresmadridejos.model.Adviced;
import es.cazadoresmadridejos.objs.web.Page;

@Service
public class AdvicedManagerImpl extends ManagerImpl<Adviced> 
	implements AdvicedManager{

	@Autowired 
	public void setDao(@Qualifier("advicedDao")
	Dao<Adviced> dao) {
		this.dao = dao;
	}

	@Override
	public PaginatedList findAllPaginated(Page page, Long reason) { 
		return ((AdvicedDao)dao).findAllPaginated(page, reason);
	}

}
